#define _CRT_SECURE_NO_WARNINGS 1
# include <stdio.h>
int main(void)
{
    int a, b, t;
    scanf("%d%d", &a, &b);
    if (a > b)
    {
        t = a; a = b; b = t;
    }
    printf("%d %d\n", a, b);
    return 0;
}